package pt.iscte.pcd.buttonadder;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class AddButtonListener implements ActionListener {
	private int current_button_number = 1;
	private ButtonAdder app;
	public AddButtonListener(ButtonAdder app) {
		this.app = app;
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		
			app.createNewButton(current_button_number++);
	}
}





